﻿using System.Collections.Generic;
using Entities;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System;
using System.Linq;
using WebUI.Models;

namespace WebUI.Areas.Bots.Models
{
    public class AdvancedBotTypeViewModel : BaseModel
    {
        public BotTypeActivity SelectedBotTypeActivity { get; set; }
        [Range(0, 5, ErrorMessage = "Please enter UnusualTrainingSpan")]
        public short? UnusualTrainingSpan { get; set; }
        public int? UnusualTrainingValue { get; set; }
        public IEnumerable<SelectListItem> BotTypeActivities
        {
            get
            {
                return Enum
                    .GetValues(typeof(BotTypeActivity))
                    .Cast<BotTypeActivity>()
                    .Select(a => new SelectListItem { Text = a.ToString(), Value = a.ToString() });
            }
        }
        public bool ShowUnusualDataSection { get; set; }
    }
}